package cn.stylefeng.guns.sys.modular.system.entity.Enum;

import lombok.Getter;

/**
 * 任务状态枚举
 * 状态：1提交/确认/通过；0未确认/驳回
 */

@Getter
public enum ProjectTaskStatusEnum {
    SUBMIT(1, "提交/确认/通过"),

    REJECT(0, "未确认/驳回");

    ProjectTaskStatusEnum(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    private Integer code;

    private String message;

    public static ProjectTaskStatusEnum getByCode(Integer value){
        for(ProjectTaskStatusEnum transactType : values()){
            if (transactType.getCode().equals(value)) {
                return transactType;
            }
        }
        return null;
    }

}
